package com.bruce.pattern.behavioral.state;

/**
 * Created by bruce on 2018/11/11 21:54
 */
public class MainTest {
    public static void main(String[] args) {
        VideoContext context = new VideoContext();

        context.setVideoState(VideoContext.PLAY_STATE);

        System.out.println(context.getVideoState());

        context.stop();
        System.out.println(context.getVideoState());

        context.speed();


    }
}
